import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
//引入element ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
//添加font文件
import "./iconfont/iconfont.css";
import "./iconfont/font/iconfont.css";
// 引入i18n
import VueI18n from "vue-i18n";
//引入echarts
// import echarts from 'echarts'
let echarts = require('echarts')
Vue.prototype.$echarts = echarts

// 引入全局守卫
import "./router/permission.js";

Vue.use(ElementUI);
Vue.use(VueI18n);
// 创建vueI18n实例
const i18n = new VueI18n({
  locale: store.getters.locale,
  messages:{
    "zh":require('./lang/zh'),
    "en":require('./lang/en')
  }
})

Vue.config.productionTip = false

new Vue({
  i18n,
  router,
  store,
  render: h => h(App)
}).$mount('#app')
